package com.glink.manage.dto.constructionwork;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
* @author  qiushaoshan
* @since 2025-01-08
*/
@ApiModel(value = "ConstructionWorkUnitSaveDTO对象", description = "施工工程-参建单位-保存入参")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ConstructionWorkUnitSaveDTO implements Serializable {

    private static final long serialVersionUID = -6209830104253765500L;


    @ApiModelProperty(value = "objId")
    private String objId;

    @ApiModelProperty(value = "施工工程ID")
    @NotBlank(message = "施工工程不能为空")
    private String constructionWorkObjId;

    @ApiModelProperty(value = "参建单位ID")
    @NotBlank(message = "参建单位不能为空")
    private String participatingUnitObjId;

    @ApiModelProperty(value = "参建类型,1为施工,2为监理")
    @NotBlank(message = "参建类型不能为空")
    private String constructionType;

    @ApiModelProperty(value = "责任人ID")
    @NotBlank(message = "责任人ID不能为空")
    private String responsiblePersonId;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "参建单位角色,code：ParticipatingUnitRole")
    private String participatingUnitRole;
}
